
$(function(){
    // 进入页面发送ajax请求数据
    render();
    function render(){
        $.ajax({
            type: "get",
            url: "/cart/queryCart",
            dataType: "json",
            success: function (info) {
                // console.log(info);
                if(info.error){
                    location.href='login.html?retUrl=" + location.href'
                }else{
                    $('.mui-table-view').html(template('cartTpl',{arr:info}))
                }

            }
        });
    }
})